package com.liubj.task;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

@Component
public class TaskExecutorTest {

    /**
     * 第一个xxl-job测试案例
     * @return
     */
    @XxlJob(value = "taskDemo1")
    public ReturnT taskDemo1(){

        System.out.println("========================taskDemo1 执行啦 =============================");
        return ReturnT.SUCCESS;
    }
}
